home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.2 Applications 1996 May / SGI IRIX 6.2 Applications 1996 May.iso / dist / impr_dev.idb / usr / impressario / src / examples / libpod / Makefile.z / Makefile
Makefile  |  1996-05-06  |  2KB  |  84 lines

  1. #! smake
  2. #**************************************************************************
  3. #*                                      *
  4. #*          Copyright (C) 1991, Silicon Graphics, Inc.          *
  5. #*             All Rights Reserved.                  *
  6. #*                                      *
  7. #* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.; *
  8. #* the contents of this file may not be disclosed to third parties,      *
  9. #* copied or duplicated in any form, in whole or in part, without the      *
  10. #* prior written permission of Silicon Graphics, Inc.              *
  11. #*                                      *
  12. #* RESTRICTED RIGHTS LEGEND:                          *
  13. #*    Use, duplication or disclosure by the Government is subject to    *
  14. #*    restrictions as set forth in subdivision (c)(1)(ii) of the Rights *
  15. #*    in Technical Data and Computer Software clause at DFARS       *
  16. #*    252.227-7013, and/or in similar or successor clauses in the FAR,  *
  17. #*    DOD or NASA FAR Supplement. Unpublished - rights reserved under   *
  18. #*    the Copyright Laws of the United States.              *
  19. #**************************************************************************
  20. #*
  21. #* Makefile (user.makefile) - libpod example programs
  22. #*
  23. #* $Revision: 1.4 $
  24. #*
  25. #*
  26. #**************************************************************************/
  27.  
  28.  
  29. include /usr/include/make/commondefs
  30.  
  31.  
  32. #
  33. # The LOCAL files are programs that use only the local form of the
  34. # libpod functions. These programs are linked only with libpod.a.
  35. # The STD files are programs that use the standard form of the 
  36. # libpod functions and are linked with libpod.a, libspool.a and libsun.a
  37. #
  38.  
  39. LOCAL_CFILES = message.c \
  40.            lstatus.c \
  41.            linfo.c \
  42.            logit.c
  43.  
  44. STD_CFILES = status.c \
  45.          info.c \
  46.          readlog.c \
  47.          pagesize.c
  48.  
  49. LOCAL_TARGETS = ${LOCAL_CFILES:.c=}
  50.  
  51. STD_TARGETS = ${STD_CFILES:.c=}
  52.  
  53. CFILES = $(LOCAL_CFILES) $(STD_CFILES)
  54. TARGETS = $(LOCAL_TARGETS) $(STD_TARGETS)
  55.  
  56. LMKDEPFLAGS = $(NULLSUFFIX_MKDEPFLAG)
  57.  
  58.  
  59. LOCAL_LLDLIBS = -lpod
  60. LOCAL_LDOPTS = $(VLDOPTS) $(GLDOPTS)
  61. LOCAL_LDLIBS = $(VLDLIBS) $(LOCAL_LLDLIBS) $(GLDLIBS)
  62. LOCAL_LDFLAGS = $(LOCAL_LDOPTS) $(LOCAL_LDLIBS)
  63.  
  64. STD_LLDLIBS = -lpod -lspool
  65. STD_LDOPTS = $(VLDOPTS) $(GLDOPTS)
  66. STD_LDLIBS = $(VLDLIBS) $(STD_LLDLIBS) $(GLDLIBS)
  67. STD_LDFLAGS = $(STD_LDOPTS) $(STD_LDLIBS)
  68.  
  69. CVERSION = -xansi
  70.  
  71. default all: $(TARGETS)
  72.             
  73. targets: $(TARGETS)
  74.  
  75. $(LOCAL_TARGETS): $$@.c
  76.     $(CCF) $@.c $(LOCAL_LDFLAGS) -o $@
  77.  
  78. $(STD_TARGETS): $$@.c
  79.     $(CCF) $@.c $(STD_LDFLAGS) -o $@
  80.  
  81. include $(COMMONRULES)
  82.  
  83. install: all
  84.